package com.heima.api.feign.aparticle.fallback;

import com.heima.api.feign.aparticle.ApArticleFeignClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 *  降级处理
 *
 * @Author mr.luo
 * @Date 28 6月 2025 01:14
 */
@Component
public class ApArticleFeignClientFallback implements ApArticleFeignClient {
    /**
     * 保存三剑客
     *
     * @param dto
     * @return
     */
    @Override
    public ResponseResult save(ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.PEAK_DATE_PERIODS,"获取数据失败");
    }
}
